﻿@using Portal.Frontend.UI.Helpers
@model RSHB.Frontend.UI.ViewModels.LoanAgreementEditPropertiesViewModel

@{
    ViewBag.Title = "Edit";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

@using (Html.BeginForm())
{
    @Html.HiddenFor(m => m.LoanAgreementID)
    <div class="action_panel">
        <ul>
            <li><input type="submit" value="Сохранить" /></li>
            <li>@Html.ImageActionExportLink("Распечатать", string.Empty, "Print", "LoanAgreement", new { id = @Model.LoanAgreementID }, null, null)</li>
            <li>@Html.ImageActionCancelLink("Отменить", string.Empty, "Index", "LoanAgreement", null, null, null)</li>
        </ul>
    </div> 
    <div class="f">
        <fieldset>
            <p class="row">
                @Html.LabelFor(m => m.LoanAgreementTitle)@Html.TextBoxFor(m => m.LoanAgreementTitle, new { @class = "input" })
            </p>
            <p class="row">
                @Html.LabelFor(m => m.LoanAgreementNum)@Html.TextBoxFor(m => m.LoanAgreementNum, new { @class = "input" })
            </p>
            <p class="row">
                @Html.LabelFor(m => m.LoanAgreementAccount)@Html.TextBoxFor(m => m.LoanAgreementAccount, new { @class = "input" })
            </p>
            <p class="row">
                @Html.LabelFor(m => m.LoanAgreementAmount)@Html.TextBoxFor(m => m.LoanAgreementAmount, new { @class = "input" })
            </p>
            <p class="row">
                @Html.LabelFor(m => m.LoanAgreementRate)@Html.TextBoxFor(m => m.LoanAgreementRate, new { @class = "input" })
            </p>
            <p class="row">
                @Html.LabelFor(m => m.LoanAgreementFullRate)@Html.TextBoxFor(m => m.LoanAgreementFullRate, new { @class = "input" })
            </p>
            <p class="row">
                @Html.LabelFor(m => m.LoanAgreementIssueDate)@Html.TextBoxFor(m => m.LoanAgreementIssueDate, new { @class = "datepicker input short" })<img src="/Content/images/calendar.png" />
            </p>
            <p class="row">
                @Html.LabelFor(m => m.LoanAgreementRepaymentDate)@Html.TextBoxFor(m => m.LoanAgreementRepaymentDate, new { @class = "datepicker input short" })<img src="/Content/images/calendar.png" />
            </p>
            <p class="row">
                @Html.LabelFor(m => m.Borrowers)@Html.DropDownListFor(m => m.SelectedBorrowerID, Model.Borrowers, new { @class = "input wide" })
            </p>
            <p class="row">
                @Html.LabelFor(m => m.CoBorrowers)@Html.DropDownListFor(m => m.SelectedCoBorrowerID, Model.CoBorrowers, new { @class = "input wide" })
            </p>
            <p class="row">
                @Html.LabelFor(m => m.Sponsors1)@Html.DropDownListFor(m => m.SelectedSponsor1ID, Model.Sponsors1, new { @class = "input wide" })
            </p>
            <p class="row">
                @Html.LabelFor(m => m.Sponsors2)@Html.DropDownListFor(m => m.SelectedSponsor2ID, Model.Sponsors2, new { @class = "input wide" })
            </p>
            <p class="row">
                @Html.LabelFor(m => m.LoanAgreementContractOfGuaranteeNum)@Html.TextBoxFor(m => m.LoanAgreementContractOfGuaranteeNum, new { @class = "input" })
            </p>
            <p class="row">
                @Html.LabelFor(m => m.LoanAgreementContractOfGuaranteeDate)@Html.TextBoxFor(m => m.LoanAgreementContractOfGuaranteeDate, new { @class = "datepicker input short" })<img src="/Content/images/calendar.png" />
            </p>
        </fieldset>
    </div>
    <div class="action_panel">
        <ul>
            <li><input type="submit" value="Сохранить" /></li>
            <li>@Html.ImageActionExportLink("Распечатать", string.Empty, "Print", "LoanAgreement", new { id = @Model.LoanAgreementID }, null, null)</li>
            <li>@Html.ImageActionCancelLink("Отменить", string.Empty, "Index", "LoanAgreement", null, null, null)</li>
        </ul>
    </div>
}


